package guo.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class TestExeceas {

    @Autowired
    ApplicationContext applicationContext;


    @GetMapping("/executor4")
    @ResponseBody
    public void test1(){
        String[] beanDefinitionNames = applicationContext.getBeanDefinitionNames();
        System.out.println(beanDefinitionNames.length);
        for (String s:beanDefinitionNames){
            System.out.println("s = " + s);
        }
    }
}